projects
/
gpsbabel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
80d9711
)
Lowrance: fix memory corruption on read of empty route description.
author
robertlipe
<robertlipe@gmail.com>
Tue, 11 Dec 2012 18:52:02 +0000
(18:52 +0000)
committer
robertlipe
<robertlipe@gmail.com>
Tue, 11 Dec 2012 18:52:02 +0000
(18:52 +0000)
gpsbabel/lowranceusr4.c
patch
|
blob
|
history
diff --git
a/gpsbabel/lowranceusr4.c
b/gpsbabel/lowranceusr4.c
index 7c00c01fec359eb687f3605f8f216e8fbd3f1778..a0c7520fa60b51c8ce2f6b6c681bb39b5f805a71 100644
(file)
--- a/
gpsbabel/lowranceusr4.c
+++ b/
gpsbabel/lowranceusr4.c
@@
-656,7
+656,7
@@
lowranceusr4_parse_trails(void)
text_len = lowranceusr4_readstr(&buff[0], MAXUSRSTRINGSIZE, file_in, 2);
if (text_len) {
buff[text_len] = '\0';
- trk_head->rte_desc =
buff
;
+ trk_head->rte_desc =
xstrdup(buff)
;
}
/* Creation date/time, discard for now */